<?php
namespace app\admin\controller;
use app\admin\controller\Base;
class Index extends Base
{   

    //登陆后的页面
    public function index()
    {
      return view('',['title'=>'后台主页']);
    }
    

    //修改本人信息
    public function edit()
    {
      
      return view();
    }
    


    //退出登陆
    public function loginOut()
    {
      cookie('user',null);
      return $this->redirect('index/index/index');
    }

    //切换用户
   // public  function switch() 
    //{
      //cookie('user',null);
      //return $this->redirect('index/index/login');
    //}


    
}